package org.jeecg.modules.wlhy.tlaccount.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.wlhy.tlaccount.entity.HyTlAccountRecord;
import org.jeecg.modules.wlhy.tlaccount.mapper.HyTlAccountRecordMapper;
import org.jeecg.modules.wlhy.tlaccount.service.IHyTlAccountRecordService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: hy_tl_account_record
 * @Author: jeecg-boot
 * @Date:   2022-10-08
 * @Version: V1.0
 */
@Service
public class HyTlAccountRecordServiceImpl extends ServiceImpl<HyTlAccountRecordMapper, HyTlAccountRecord> implements IHyTlAccountRecordService {

    @Override
    public HyTlAccountRecord getByMerOrderNo(String merOrderNo) {
        return baseMapper.selectOne(new QueryWrapper<HyTlAccountRecord>().eq("mer_order_no",merOrderNo));
    }

    @Override
    public HyTlAccountRecord getByMerOrderNoForUpdate(String merOrderNo) {
        return baseMapper.getByMerOrderNoForUpdate(merOrderNo);
    }
}
